<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<%--<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>--%>
<%@include file="/common_head.jsp" %>
<head>
    <style>
        .chartDiv {
            height: 400px;
            width: 500px;
            border: 1px solid indianred;
        }
        #charts {
            /*border: 1px solid indianred;*/
        }
    </style>
</head>
<html>
<body style="margin: 10px">
<div  id="charts">
    <div class="row" style="width: 1000px;">
        <div class="col-xs-6 chartDiv" id="test_left_1">
        </div>
        <div class="col-xs-6 chartDiv " id="test_right_1">
        </div>
    </div>
</div>

</body>
</html>
<%--<script src="<%=basePath%>/resources/jquery-1.9.1.js"></script>--%>
<script src="<%=basePath%>/resources/echarts_v3.2.3/echarts.js"></script>
<script src="<%=basePath%>/resources/js/test.js"></script>
<script>
    var basePath='<%=basePath%>';

    $("#test").on('click',function () {
        test();
    });
    function test() {
        var url=basePath+'/collectorController/executeCollector';
        $.post(url,{},function (data) {
            console.log("测试数据返回:",data);
        },'json')
    }

</script>
